package Level01_one;

public class Test {
    public static void main(String[] args) {
        new Phone("华为", 3000).call();
        new Computer("雷神", 6000).coding();
        PlayGame playGame = new PlayGame() {
            @Override
            public void play(Phone phone, Computer computer) {
                System.out.println(computer.getPrice()+"元的"+computer.getBrand()+"电脑和"+phone.getPrice()+"元的"+phone.getBrand()+"手机都可以打游戏");
            }
        };
        playGame.play(new Phone("华为", 3000), new Computer("雷神", 6000));

    }
}
